package com.iie.bigVideo.mapper;

import com.iie.bigVideo.entity.AnnexImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iie.bigVideo.entity.Image;
import com.iie.bigVideo.entity.UserCatalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2024-01-30
 */
public interface AnnexImgMapper extends BaseMapper<AnnexImg> {

    List<Image> queryByAnnexId(@Param("annexId") String annexId);

    List<Image> queryByAnnexIdList(@Param("annexIds") List<String> annexIds);


    Integer addAnnexImgObject(AnnexImg annexImg);

    Integer addAnnexImg(@Param("annexImgList") List<AnnexImg> annexImgList);


    Integer deleteAnnexImg(@Param("annexId") int annexId);


    List<AnnexImg> queryImgByAnnexId(@Param("annexId") String annexId);

    Integer deleteByImagesId(@Param("imageIds") List<String> imageIds);

}
